<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\11\27 0027
 * Time: 13:37
 */

$table = new \Swoole\Table(8);

$table->column('fd', \Swoole\Table::TYPE_INT, 10);
$table->column('user_id', \Swoole\Table::TYPE_INT, 20);

$table->create();

$table->set('1', ['fd' => 1, 'user_id' => 2]);

$res = $table->get('1', 'user_id');

var_dump($res);